Finite Satis ability of Keys and Foreign Keys for XML

نویسندگان

  • Wenfei Fan
  • Leonid Libkin
چکیده

Key and foreign key constraints are useful for XML 5] data in semantic speciication, query optimization and more importantly, for information preservation in data exchange. Several XML proposals, e.g., XML Schema 28] and XML Data 21], support key and foreign key speciications. These constraints, however, may not be nitely satissable in the XML context. More specifically , given a DTD D and a nite set of key and foreign key constraints, there may not exist any nite XML documents that both conform to D and satisfy. This paper investigates nite satissability problems associated with key and foreign key constraints for XML. We show that DTDs impose a class of cardinality constraints on XML documents, and these cardinality constraints interact with keys and foreign keys. We investigate the interaction and in particular, establish complexity results for the analysis of nite satissability of keys and foreign keys deened in two constraint languages. One language, L u , deenes unary keys and foreign keys in terms of XML attributes, and the other, L, deenes multi-attribute keys and foreign keys. We show that the nite satissability problem for L u constraints is NP-complete, and the nite satissability problem for L constraints is undecidable. We also establish PTIME decidability for several special cases of the nite satis-ability problems.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Finite Implication of Keys and Foreign Keys for XML Data

We investigate nite implication problems associated with key and foreign key constraints for XML data. We demonstrate that there is interaction between DTDs and these constraints, and the interaction complicates the analysis of nite implication. In particular, we establish complexity results for reasoning about two classes of constraints for XML. One class, L u , deenes unary keys and foreign k...

متن کامل

What's Hard about XML Schema Constraints?

Data description for XML usually comes in the form of a type specification (e.g., a DTD) together with integrity constraints. XML Schema allows one to mix DTD features with semantic information, such as keys and foreign keys. It was shown recently [2,7] that the interaction of DTDs with constraints may be rather nontrivial. In particular, testing if a general specification is consistent is unde...

متن کامل

On Incomplete XML Documents with Integrity Constraints

We consider incomplete specifications of XML documents in the presence of schema information and integrity constraints. We show that integrity constraints such as keys and foreign keys affect consistency of such specifications. We prove that the consistency problem for incomplete specifications with keys and foreign keys can always be solved in NP. We then show a dichotomy result, classifying t...

متن کامل

On the Complexity of Verifying Consistency of XML Specifications

XML specifications often consist of a type definition (typically, a DTD) and a set of integrity constraints. It has been shown previously that such specifications can be inconsistent, and thus it is often desirable to check consistency at compile-time. It is known [16] that for general keys and foreign keys, and DTDs, the consistency problem is undecidable; however, it becomes NP-complete when ...

متن کامل

Unlocking Keys for XML Trees

We review key constraints in the context of XML as introduced by Buneman et al. We show that one of the proposed inference rules is not sound in general, and the axiomatisation proposed for XML keys is incomplete even if key paths are simple. Therefore, the axiomatisation and also the implication problem for XML keys are still unsolved. We propose a set of inference rules that is indeed sound a...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2000